<?php 
	class Zuoye_reward_model extends CI_Model{

		function __construct(){
			parent::__construct();
		}

		function get_reward($child_id,$limit=3){
			$sql = "SELECT * FROM {$this->db->dbprefix}zuoye_rewards 
		 			WHERE child_id = $child_id LIMIT $limit";

			return $this->db->query($sql)->result_array();
		}


	}
